package com.cskaoyan.controller;

import com.cskaoyan.service.FootprintService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.FootprintVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FootprintController {

    @Autowired
    FootprintService footprintService;

    /**
     * 功能:会员足迹页面
     * 作者:whj
     */
    @RequestMapping("admin/footprint/list")
    public BaseRespVo list(Integer page,Integer limit,Integer userId,Integer goodsId,String sort,String order){
        FootprintVo footprintVo = footprintService.query(page,limit,userId,goodsId,sort,order);
        return BaseRespVo.ok(footprintVo);
    }
}
